#! /bin/bash
num=(1 2 3)
array(){
	echo "all paramters : $@"
	local newarray=($@)
	local i
	for j in `seq 0 $[$#-1]`
	do
		outarray[$j]=$[${newarray[$j]}*5]	
	done
	echo "${outarray[@]}"
}

result=`array ${num[@]}`
echo "${result[@]}"
